package cn.nfwx.tv.model;

import android.os.Parcel;
import android.os.Parcelable;

public class CompanyVideo implements Parcelable {

    /**
     * url : http://vodcdn.southtv.cn/company/aa/47960cdc-1533859438.mp4
     * duration : 203
     * video_id : 1
     * title : 测试
     */

    private String url;
    private int duration;
    private int video_id;
    private String title;

    public CompanyVideo() {
    }

    protected CompanyVideo(Parcel in) {
        url = in.readString();
        duration = in.readInt();
        video_id = in.readInt();
        title = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(url);
        dest.writeInt(duration);
        dest.writeInt(video_id);
        dest.writeString(title);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<CompanyVideo> CREATOR = new Creator<CompanyVideo>() {
        @Override
        public CompanyVideo createFromParcel(Parcel in) {
            return new CompanyVideo(in);
        }

        @Override
        public CompanyVideo[] newArray(int size) {
            return new CompanyVideo[size];
        }
    };

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public int getVideo_id() {
        return video_id;
    }

    public void setVideo_id(int video_id) {
        this.video_id = video_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
